//
//  GMHsurroundDetailUrl.m
//  
//
//  Created by 郭明皓 on 15/10/27.
//
//

#import "GMHsurroundDetailUrl.h"

@interface GMHsurroundDetailUrl ()
@property (nonatomic, retain)UIWebView *webView;
@end

@implementation GMHsurroundDetailUrl
- (void)dealloc
{
    [_webView release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];

    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height + 49)];
    self.webView.scalesPageToFit = YES;
    NSString *strurl = [NSString stringWithFormat:@"http://appapi.yaochufa.com/v2/Product/GetProductInfoById?system=android&machineCode=ffffffff-9317-02f2-ffff-fffff60c2478&productId=%ld&channel=xiaomimarket&version=4.3.1", (long)_number];
    
    [self.webView loadHTMLString:self.url baseURL:[NSURL URLWithString:strurl]];
    [self.view addSubview:_webView];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
